﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SalesOff.ascx.cs" Inherits="AdminX_Product_SalesOff" %>
<%@ Register Src="../../Common/Alert.ascx" TagName="Alert" TagPrefix="uc1" %>
<%@ Register Assembly="Paging" Namespace="CutePager" TagPrefix="cc1" %>
<div>
    <uc1:Alert ID="Alert1" runat="server" />
</div>

<div>
 <asp:Label ID ="lblCategory" runat ="server" Text = "Danh mục"  CssClass="text" Font-Bold ="true"  Width="90px" ></asp:Label>
    <asp:DropDownList ID="ddlCategory" CssClass="boxlonger" Width="300px" runat ="server" ></asp:DropDownList>
 
     <asp:Label ID="Label1" runat="server"  Font-Bold ="true" Text = "Từ khóa" Width="60px"    CssClass="text" ></asp:Label>
    <asp:TextBox ID="txtSearch" runat ="server" CssClass="boxlonger" Width="160px" MaxLength="2"></asp:TextBox>
  
   
</div>
<div>
<asp:Label ID="Label4" runat="server"  Font-Bold ="true" Text = "Khuyến mại (%)" Width="90px"    CssClass="text" ></asp:Label>
    <asp:TextBox ID="txtPercentDiscount" runat ="server" CssClass="boxlonger" Width="30px" MaxLength="2"></asp:TextBox>

    
     <asp:Label ID="Label2" runat="server"  Font-Bold ="true" Text = "Ngày bắt đầu" Width="80px"    CssClass="text" ></asp:Label>
    <asp:TextBox ID="txtStartedDate" runat ="server" CssClass="boxlonger" Width="120px" MaxLength="10"></asp:TextBox>
         <asp:Label ID="Label3" runat="server"  Font-Bold ="true" Text = "Ngày kết thúc" Width="80px"    CssClass="text" ></asp:Label>
    <asp:TextBox ID="txtExpriedDate" runat ="server" CssClass="boxlonger" Width="120px" MaxLength="10"></asp:TextBox> 
     <i><span style ="color:Black ">(Định dạng ngày tháng: DD/MM/YYYY)</span></i>
    
</div>
<div style ="float:right ">
 <asp:Button ID="btnSearch" runat ="server" Text ="Search" OnClick="btnSearch_Click" />
</div>

<div>
    <asp:Label ID="lblTotalRecord" runat="server" CssClass="text" Font-Bold="true"></asp:Label>
   
</div>
<div>
    <asp:DataGrid ID="dtgProductCategory" runat="Server" AutoGenerateColumns="False"  CellPadding="3"   
       CssClass="grdContainer"  BackColor="White"  BorderColor="#999999" BorderStyle="None" BorderWidth="1px" GridLines="Vertical"  OnItemDataBound="dtgProductCategory_ItemDataBound">
        <HeaderStyle CssClass="grdHeader" BackColor="#698DAD" Font-Bold="True" ForeColor="White"  />
        <AlternatingItemStyle CssClass="grdAlterItem" BackColor="#DCDCDC" />
        <ItemStyle CssClass="grdItem" BackColor="#EEEEEE" ForeColor="Black" />
        <EditItemStyle CssClass="grdEditItem" />
        <SelectedItemStyle CssClass="grdSelectItem" Font-Bold="True" BackColor="#008A8C" ForeColor="White" />
        <Columns>
                <asp:TemplateColumn  HeaderText="STT" >
                    <HeaderStyle Width="30px" ></HeaderStyle >
                    <ItemTemplate>
                         <%# Container.ItemIndex + 1 %>
                    </ItemTemplate>
                </asp:TemplateColumn> 
             
                <asp:TemplateColumn  HeaderText="Tên Sản phẩm">
                     <HeaderStyle  ></HeaderStyle >
                    <ItemTemplate>
                        <div style ="float:left ; padding-left:10px"><asp:Label ID="lblID" runat="server" Visible=false  ></asp:Label><asp:Label ID="lblProductName" runat="server" Font-Bold ="true" ></asp:Label></div>
                    </ItemTemplate>
                </asp:TemplateColumn>
                 <asp:TemplateColumn  HeaderText="Danh mục">
                     <HeaderStyle   Width="150px"></HeaderStyle >
                    <ItemTemplate>
                        <div style ="float:left ; padding-left:10px"><asp:Label ID="lblCategory" runat="server"></asp:Label></div>
                    </ItemTemplate>
                </asp:TemplateColumn> 
             
                
               
                  <asp:TemplateColumn  HeaderText="Giá (VNĐ)">
                     <HeaderStyle Width="70px"  ></HeaderStyle >
                    <ItemTemplate>
                        <asp:Label ID="lblPrice" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateColumn>
                   <asp:TemplateColumn  HeaderText="Giảm(%)">
                     <HeaderStyle Width="30px"  ></HeaderStyle >
                    <ItemTemplate>
                        <asp:Label ID="lblDiscountPercent" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateColumn>
                 <asp:TemplateColumn  HeaderText="Giá khuyến mại">
                     <HeaderStyle Width="60px"  ></HeaderStyle >
                    <ItemTemplate>
                        <asp:TextBox ID="txtDiscountPrice" runat="server" Width="70px"></asp:TextBox>
                    </ItemTemplate>
                </asp:TemplateColumn>
                 <asp:TemplateColumn  HeaderText="Ngày bắt đầu">
                     <HeaderStyle Width="70px"  ></HeaderStyle >
                    <ItemTemplate>
                         <asp:TextBox ID="txtStarrtedDate" runat="server" Width="70px"></asp:TextBox>
                    </ItemTemplate>
                </asp:TemplateColumn>
                 <asp:TemplateColumn  HeaderText="Ngày kết thúc">
                     <HeaderStyle Width="70px"  ></HeaderStyle >
                    <ItemTemplate>
                        <asp:TextBox ID="txtExpiredDate" runat="server" Width="70px"></asp:TextBox>
                    </ItemTemplate>
                </asp:TemplateColumn>
        </Columns>
           <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
           <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" Mode="NumericPages" />
    </asp:DataGrid>
</div>
<div style ="padding-top:10px; padding-bottom:10px;  float:right  ">
<asp:Button id="btnApply" runat ="server"  Text ="Áp dụng" 
    onclick="btnApply_Click"/>
</div>

<div id="tblWarning" runat="server"  align="center" style="border:1px solid #A0A1A0; height: 25px; padding-top:5px;     ">
    <asp:Label ID="lblWarning" runat="server"  ForeColor="black" Font-Bold="true"     ></asp:Label>
</div>
<div align="right" style="width:100%; color: black">
    <cc1:pager id="Pager1" OnCommand="pager_Command"  runat="server"></cc1:pager>
</div>